import request from '@/utils/request';

export async function getBatchPlanByPage(params: any) {
  return request('/api/project/getBatchPlanByPage', {
    method: 'POST',
    data: params,
  });
}

export async function addBatchPlan(params: any) {
  return request('/api/project/addBatchPlan', {
    method: 'POST',
    data: params,
  });
}

export async function updateBatchPlan(params: any) {
  return request('/api/project/updateBatchPlan', {
    method: 'POST',
    data: params,
  });
}

export async function delBatchPlan(params: any) {
  return request('/api/project/delBatchPlan', {
    method: 'POST',
    data: params,
  });
}

export async function exportBatchPlan(params: any) {
  return request('/api/project/exportBatchPlan', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getBatchPlanByPage, addBatchPlan, updateBatchPlan, delBatchPlan, exportBatchPlan };
